 var $inputFile = $('#inputFile');
 var $filePreviews = $('.filePreviews');
 $inputFile.on('change', function(event) {
   $this = $(event.target);
   const tpl = `<li class="filePreview"><img class="filePic" src="${$this.val()}" /></li>`
   $filePreviews.append(tpl);
   const files = $this[0].files;
  //  console.log(files[0])
  //  const promise = new Promise();
   Promise.all(
      Promise.all.getDataURL(files[0]).then(dataURL => {
        console.log(dataURL);
        Promise.all.queue(dataURL);
      })
   )
  //  promise((resolve) => {
  //    const reader = new FileReader();
  //    reader.addEventListener('load', function (event) {
  //      console.log(event.target.result);
  //    });
  //   reader.readAsDataURL($this[0].files[0]);
  //  })
  //  console.log(reader.readAsDataURL($this[0].files[0]));
 })
